<template>
 <div>
  御剑乘风来,除魔天地间!==father==={{$store.state.count}}==={{$store.state.user.userInfo.age}}
<button @click="add">按钮+10</button>
<button @click="add2">年龄+1</button>
 </div>
</template>
<script>
export default{
    name:'',
    data () {
        return {
          obj:{
            n:5
          }
            
        }
    },
    created () {
      console.log(this.$store.state.user.userInfo,999999);
      console.log(this.$store.state.setting.ss,888888);
    },
    computed:{
    },
    methods:{
      add(){
        this.$store.commit('changeHandel',this.obj)
        // this.$store.state.count++
      },
      add2(){
        this.$store.commit('user/changeHandel')
      }
    }
}
</script>
<style lang='less'  scoped>
    
</style>
